API Documentation
ContentLoader.h
1 // ContentLoader.h
3 //
5 
6 namespace nkWinUi
7 {
11  class DLL_WINUI_EXPORT ContentLoader final
12  {
13  public :
14 
39  static bool outputData (const nkMemory::StringView& content, const nkMemory::StringView& path) ;
40 
41  // Save
49  static bool saveObjectDeclaration (nkExport::Exportable* object, const nkMemory::StringView& pathFromData) ;
50 
51  // Load
79  static Layout* loadLayoutDeclaration (const nkMemory::StringView& pathFromData) ;
115  } ;
116 }
nkWinUi::ContentLoader::saveObjectDeclaration
static bool saveObjectDeclaration(nkExport::Exportable *object, const nkMemory::StringView &pathFromData)
nkWinUi::ContentLoader::inputDataSources
static nkExport::ExporterLoadResult inputDataSources(const nkMemory::StringView &sources)
nkWinUi::ContentLoader::inputData
static nkExport::ExporterLoadResult inputData(const nkMemory::StringView &filePath)
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkWinUi::ContentLoader::outputData
static bool outputData(const nkMemory::StringView &content, const nkMemory::StringView &path)
nkWinUi::Layout
Represents a layout to organize sub-windows in a window.
Definition: Layout.h:12
nkWinUi::ContentLoader::processInterfaceSources
static Component * processInterfaceSources(const nkMemory::StringView &sources)
nkWinUi::ContentLoader::loadLayoutDeclaration
static Layout * loadLayoutDeclaration(const nkMemory::StringView &pathFromData)
nkExport::ExporterLoadResult
Holds the information about a try to import data sources.
Definition: ExporterLoadResult.h:15
nkWinUi::ContentLoader::loadComponentDeclaration
static Component * loadComponentDeclaration(const nkMemory::StringView &pathFromData)
nkWinUi::Component
Base class for any graphical component.
Definition: Component.h:12
nkWinUi::ContentLoader::processComponentSources
static Component * processComponentSources(const nkMemory::StringView &sources)
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkWinUi::ContentLoader::processLayoutTree
static Layout * processLayoutTree(nkExport::Node *tree)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkWinUi::ContentLoader
Allows to export and import content through their declaration files.
Definition: ContentLoader.h:12
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7
nkWinUi::ContentLoader::loadInterfaceDeclaration
static Component * loadInterfaceDeclaration(const nkMemory::StringView &pathFromData)
nkWinUi::ContentLoader::processInterfaceTree
static Component * processInterfaceTree(nkExport::Node *tree)
nkWinUi::ContentLoader::processComponentTree
static Component * processComponentTree(nkExport::Node *tree)
nkWinUi::ContentLoader::processLayoutSources
static Layout * processLayoutSources(const nkMemory::StringView &sources)